package com.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.pojo.FuncBean;;

public class FuncMapper implements RowMapper
{
	public Object mapRow(ResultSet rset, int index) throws SQLException
	{
		FuncBean fb = new FuncBean();
		fb.setCode(rset.getString(1));
		fb.setName(rset.getString(2));
		fb.setPcode(rset.getString(3));
		fb.setNum(rset.getInt(4));
		fb.setUrl(rset.getString(5));
		fb.setStop(rset.getInt(6));
		return fb;
	}
}